﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

	/// <summary>
	/// 组织架构表
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_organize", DisableSyncStructure = true)]
	public partial class TOrganize {

		/// <summary>
		/// 主键唯一标识Id
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// 删除日期
		/// </summary>
		[JsonProperty]
		public DateTime? DelTime { get; set; }

		/// <summary>
		/// 删除用户Id
		/// </summary>
		[JsonProperty]
		public long? DelUser { get; set; }

		[JsonProperty, Column(Name = "isCity")]
		public bool? IsCity { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isDel")]
		public bool? IsDel { get; set; } = false;

		/// <summary>
		/// 是否是供电
		/// </summary>
		[JsonProperty, Column(Name = "isElectric")]
		public bool IsElectric { get; set; }

		/// <summary>
		/// 是否是(终端头和中间接头)
		/// </summary>
		[JsonProperty, Column(Name = "isJoint")]
		public bool IsJoint { get; set; }

		/// <summary>
		/// 是否是线路
		/// </summary>
		[JsonProperty, Column(Name = "isLine")]
		public bool IsLine { get; set; }

		[JsonProperty, Column(Name = "isProvince")]
		public bool? IsProvince { get; set; }

		/// <summary>
		/// 纬度
		/// </summary>
		[JsonProperty, Column(Name = "latitude")]
		public double? Latitude { get; set; }

		/// <summary>
		/// 位置说明
		/// </summary>
		[JsonProperty, Column(Name = "localInstructions", StringLength = -2)]
		public string LocalInstructions { get; set; }

		/// <summary>
		/// 经度
		/// </summary>
		[JsonProperty, Column(Name = "longitude")]
		public double? Longitude { get; set; }

		/// <summary>
		/// 节点名称
		/// </summary>
		[JsonProperty, Column(Name = "name", StringLength = -2)]
		public string Name { get; set; }

		[JsonProperty, Column(Name = "nodePath", StringLength = -2)]
		public string NodePath { get; set; }

		/// <summary>
		/// 排序号
		/// </summary>
		[JsonProperty, Column(Name = "orderNo")]
		public long? OrderNo { get; set; }

		/// <summary>
		/// 父节点Id
		/// </summary>
		[JsonProperty, Column(Name = "parentId")]
		public long? ParentId { get; set; }

	}

}
